import http from '@/api/index'
/* 分页查询 */
export function selectByPage (params) {
  return http.get('/handle/list', { params })
}
/* 按 id 查询 */
export function selectById (id) {
  return http.get('/handle/' + id)
}
/* 新增 */
export function insert (data) {
  return http.post('/handle', data)
}
/* 进行审批 */
export function update (data) {
  return http.put('/handle', data)
}
/* 删除 */
export function remove (id) {
  return http.delete('/handle/' + id)
}
